package com.ichir.projects.uiframework.xml;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

import com.ichir.projects.uiflow.definition.FlowType;
import com.ichir.projects.uiflow.definition.ICashable;


/**
 * 
 * @author mahieddine_ichir
 * @since 1.0.0
 */
@XmlRootElement(name="view")
@XmlAccessorType(XmlAccessType.FIELD)
public class XmlView extends XmlFlowPart implements ICashable {
	
	@XmlAttribute(name="cash", required=false)
	private boolean cash = true;
	
	@Override
	public boolean cash() {
		return cash;
	}

	@Override
	public FlowType getType() {
		return FlowType.VIEW;
	}
}
